package com.ruoyi.mstore.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.mstore.domain.RescueTask;
import com.ruoyi.mstore.service.RescueTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/rescueTask")
public class RescueTaskController {

    @Autowired
    private RescueTaskService rescueTaskService;
    @GetMapping
    public List<RescueTask> list(@RequestParam(required = false) Long rescueId) {
        return rescueTaskService.getByRescueTask(rescueId);
    }

}
